package com.lucy.property.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "building_unit")
@ApiModel(value = "楼栋单元")
public class BuildingUnit extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "区单元ID")
    @Column(name = "unit_id")
    String unitId;

    @ApiModelProperty("区单元编码")
    @Column(name = "unit_code")
    String unitCode;

    @ApiModelProperty("区单元名称")
    @Column(name = "unit_name")
    String unitName;

    @ApiModelProperty("楼栋ID")
    @Column(name = "building_id")
    String buildingId;

    @ApiModelProperty("楼栋编码")
    @Column(name = "building_code")
    String buildingCode;

    @ApiModelProperty("楼栋名称")
    @Column(name = "building_name")
    String buildingName;

    @ApiModelProperty("楼栋单元名")
    @Column(name = "building_unit_name")
    String buildingUnitName;

    @ApiModelProperty("楼层高度(含地下)")
    @Column(name = "floor_total")
    Integer floorTotal;

    @ApiModelProperty("房产个数")
    @Column(name = "house_num")
    Integer houseNum;

    @ApiModelProperty("在使用数")
    @Column(name = "in_used_num")
    Integer inUsedNum;

    @ApiModelProperty("在租数")
    @Column(name = "in_rent_num")
    Integer inRentNum;

    @ApiModelProperty("闲置数")
    @Column(name = "in_free_num")
    Integer inFreeNum;
}
